package com.edu.dao.impl;

import com.as.util.DBUtil;
import com.edu.dao.FoodDao;
import com.edu.domain.Food;

import java.util.List;

public class FoodDaoImpl implements FoodDao {
    @Override
    public List<Food> listFoodByBusinessId(int businessId) {
        String sql="SELECT *from food where businessId=?";
        return DBUtil.executeQuery(Food.class,sql,businessId);
    }
}
